package net.osweb.crm.modules.customer.bean;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "CUSTOMER_MEMBERGROUPS")
public class MemberGroups implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1131291737356485236L;
	private Integer id;
	private Integer userid;
	private Integer nameid;
	private String groupname;
	private String type;
	private Integer isavailability;

	// Constructors

	/** default constructor */
	public MemberGroups() {
	}

	/** minimal constructor */
	public MemberGroups(Integer userid) {
		this.userid = userid;
	}

	/** full constructor */
	public MemberGroups(Integer userid, Integer nameid, String groupname,
			String type, Integer isavailability) {
		this.userid = userid;
		this.nameid = nameid;
		this.groupname = groupname;
		this.type = type;
		this.isavailability = isavailability;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid", nullable = false)
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "nameid")
	public Integer getNameid() {
		return this.nameid;
	}

	public void setNameid(Integer nameid) {
		this.nameid = nameid;
	}

	@Column(name = "groupname")
	public String getGroupname() {
		return this.groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	@Column(name = "type")
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

}